<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="utf-8">
    <meta name="format-detection" content="telephone=no">
	<meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0,user-scalable=0" />
	<title>{$sharetitle}</title>
	<link rel="stylesheet" type="text/css" href="{$_G['URL']['LIANMENG_CSS']}css/kui.min.css?v=1.2">
	<link rel="stylesheet" type="text/css" href="{$_G['URL']['LIANMENG_CSS']}css/doc.css?v=3.5">
	<link rel="stylesheet" type="text/css" href="{$_G['URL']['LIANMENG_CSS']}css/swiper-3.4.2.min.css?v=1.1">
	<link rel="stylesheet" href="{$_G['URL']['LIANMENG_CSS']}css/c.css?v=3.2">


<!-- 
<link rel="stylesheet" type="text/css" href="{$_G['URL']['YIYE_CSS']}css/mobile_base.css"> -->
<link rel="stylesheet" type="text/css" href="{$_G['URL']['YIYE_CSS']}css/dsdialog.css">

<script type="text/javascript" src="{$_G['URL']['YIYE_CSS']}js/jquery.min.js"></script>
<script type="text/javascript" src="{$_G['URL']['YIYE_CSS']}js/dsdialog.js"></script>
<script type="text/javascript" src="{$_G['URL']['APP_JS']}util.js"></script>
<script type="text/javascript" src="{$_G['URL']['APP_JS']}yx.mui.min.js?v=20160906"></script>

<!-- <link rel="stylesheet" type="text/css" href="{$_G['URL']['YIYE_CSS']}css/weui.min.css"> -->
<!-- <link rel="stylesheet" href="{$_G['URL']['YIYE_CSS']}css/barrager.css"> -->
<!-- <link href="{$_G['URL']['YIYE_CSS']}css/color_base.css" rel="stylesheet" type="text/css"> -->
<!-- <link href="{$_G['URL']['YIYE_CSS']}css/mobile_new.css" rel="stylesheet" type="text/css"> -->
<link rel="stylesheet" type="text/css" href="{$_G['URL']['YIYE_CSS']}css/index.css">

	<script>
		var mpid="4775370";
	</script>

<style type="text/css">
    
/*通用颜色*/
.base_ground {background: {$config['formcolortop']} !important;}
.buy{
    width:14.375rem;
    background-color:{$config['formcolortop']};
    color:{$config['formcolorrighttext']};
}
.info{
    flex:1;
    background-color:{$config['formcolorhead']};
    color:{$config['formcolorlefttext']};
}
.jdin{
    width:{$jindu}%;
    height:1rem;
    background-color:#ed4a43;
}
.jingdu {
    padding-bottom: 1.25rem;
}

	.content {
	    margin-top: 0px;
	}
  .lazy {
    width: 100%;
  }
  .baixian{
    font-size:0;
  }
  .baixian img{
    font-size:0;
    display:block;
    vertical-align:top/middle;
  }

div.top_head,div.top_header {background: rgba(8,180,172,0.8);}
div.top_nav {border-bottom: 5px solid {$config['formcolortop']};}
div.this_login {border: 2px solid {$config['formcolortop']};}
ul.h_login li span {background-color: {$config['formcolortop']};}
div.bottom,a.m_bottom,div.tuangou_qiang_fix,span.m_fr,input.go,div.chips_tanchu_tittle,ul.here_price li span,a.this_price {background: {$config['formcolortop']};}
ul.here_price li em {background: #8dfffa;}
div.main_tittle {background: #008d86;}
*.mobile_color {color: {$config['formcolortop']} !important;}
*.base_ground {background: {$config['formcolortop']}}
div.top_header #page_top {color: #fff;}
div.top_header #page_top span {color: #f0ff00;}
div.page_right a {color: #fff;}
div.page_right a:hover, div.page_right a:active, div.page_right a:link {color: #fff;}
div.mobile_blist .mobile_hover em {color: {$config['formcolortop']};}
div.mobile_my_color {background: {$config['formcolortop']};}
h3.libao_nav {background-color: {$config['formcolortop']};}
li.vote_new_bottom p {color: {$config['formcolortop']};}
p.box_desc {color: {$config['formcolortop']};}
li.vote-text {background-color: {$config['formcolortop']};}
a.tuangou_qiang_r {background: #006762;}
div.xianshi_time ul.yomi li {background-color: {$config['formcolortop']};}
div.xianshi_time ul.yomi li.split {color: {$config['formcolortop']}; background: none;}
ul.yomi li {background: {$config['formcolortop']};}
ul.yomi li.split {color: {$config['formcolortop']}; background: none;}
div.dalin_begin span {background-color: #4bc1e1;}
div.dl_tittle1 {background-color: #54c9e8;}
p.dl_list_name input {background-color: {$config['formcolortop']}; color: #fff;}
a.mxitie_yuema {background-color: {$config['formcolortop']}; color: #fff;}
p.zixun_min1 {color: {$config['formcolortop']};}
div.mobile_select p {color: #ff0;}
div.tuangou_qiang_r {background: {$config['formcolortop']};}
div.aifenxiang_color {background: {$config['formcolortop']};}
div.ds_dialog_title {background: {$config['formcolortop']}; border-bottom: 1px solid {$config['formcolortop']};}
div.ds_dialog_buttons .ds_dialog_yes,div.ds_dialog_buttons .ds_dialog_yes:active,div.ds_dialog_buttons .ds_dialog_yes:hover {border-color: {$config['formcolortop']}; background: {$config['formcolortop']};}
div.ds_dialog_buttons .ds_dialog_yes {text-shadow: 0 -1px 0 {$config['formcolortop']};}
div.zhongchou_gobottom a.chips_gohome {background-color: {$config['formcolortop']};}

</style>

    <style type="text/css">
        .double_12 {
            width: 100%;
            height: 50px;
            position: fixed;
            bottom: 0;
            left: 0;
            z-index: 99;
            background: #ffffff;
            background-size: 100% 100%;
            text-align: center;
            border-radius: 20px 20px 0 0;
        }
        .double_12 a {
            line-height: 50px;
            width: {php echo $config['isicon']==1 && !empty($config['iconname_menu'])?'47':'96';}%;
            color: #fff;
            font-size: 20px;
            float: left;
        }
        .double_12 img {
            border: 0;
            vertical-align: middle;
            width: 26px;
            display:inline;
        }

        .double_12 span {float: left; line-height: 50px; color: #fff;}

  img{
     pointer-events:none;
  }
    </style>
	<script type='text/javascript' src='https://lib.sinaapp.com/js/jquery/1.9.1/jquery-1.9.1.min.js'></script>
	<script src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>

</head>
<body>
	<nav class="n n-tab n-fixed k-ut">
		<div class="k-container k-container-s k-auto">
			<a class="n-cell cell-2" style="background-color: {$config['formcolorhead']};" href="javascript:showposter()">
					活动秘籍
				</a>
			{if empty($themyrecordid)}
	            <a class="n-cell cell-1" href="javascript:;" onclick="showlogin(0)" style="background-color: {$config['formcolortop']};color: {$config['formcolorrighttext']}" >{$formtextcenter}</a>
	        {else}
	            <a class="n-cell cell-1" style="background-color: {$config['formcolortop']}; color: {$config['formcolorrighttext']}" >{$config['lablesuccess']}</a>
	        {/if}

    	</div>
	</nav>


	<div class="k-container k-container-s k-auto">
		{if !empty($theme['jubf'])}
		<div class="subnav">
			<p>本活动由 {$theme['jubf']} 发起</p>
		</div>
		{/if}
		{if !empty($config['centerimgs'])}
		<div class="swiper-container">
				<div class="swiper-wrapper">
					<div class="swiper-slide">
  							{if ($theme['endtime']+$endday) < TIMESTAMP && $theme['yixuanbanquan'] != '1' && $theme['USERJISHU'] == '' }
						      <a href="http://ad.yixuan.net/"><img src="{$_G['URL']['APP_IMAGE']}yixuan.jpg" alt="" class="lazy"></a>
						    {/if}
							<img src="{php echo tomedia($config['headlogo']);}">
					</div>
						{loop $config['centerimgs'] $item}
					    <div class="swiper-slide">
  								{if ($theme['endtime']+$endday) < TIMESTAMP && $theme['yixuanbanquan'] != '1' && $theme['USERJISHU'] == '' }
							      <a href="http://ad.yixuan.net/"><img src="{$_G['URL']['APP_IMAGE']}yixuan.jpg" alt="" class="lazy"></a>
							    {/if}
								<img src="{php echo tomedia($item);}">
						</div>
					    {/loop}

					</div>
				<div class="swiper-pagination"></div>
			</div>
			{else}
			<div class="content">
			    {if $isend==true}
			      <a href="http://ad.yixuan.net/"><img src="{$_G['URL']['APP_IMAGE']}yixuan.jpg" alt="" class="lazy"></a>
			    {/if}
				<img src="{php echo tomedia($config['headlogo']);}" alt="" class="lazy">
			</div>
			{/if}
			
			<div class="shop-title g-bd">
			<h5 class="g-tit">{$sharetitle}</h5>
							<a class="b b-s b-o b-info k-fr" href="javascript:;" onclick="showlogin(0)">抢购</a>			<a class="k-tc-luck k-h4 k-fr" >￥{$config['joinfee']}</a>
			<div class="g-sub g-sub-info">
				截止:{php echo date('Y-m-d H:i:s',$theme['endtime']);}			</div>
		</div>
		<div class="record" id="record">
					<div class="g-hd k-ub">
						购买记录
						<a class="g-last icon icon-more" href="/index.php/order/index/aid/20723.html"></a>
					</div>
					<div class="g-news g-line k-ub">

						{loop $fanslisttop $item}
							<div class="g-bd">
								<img class="g-img" src="{php echo tomedia($item['avatar']);}">
								<div class="g-con">
									<div class="g-tit k-elip-2">{if empty($item['username'])}null{else}{php echo mb_substr($item['username'],0,3,'utf-8');}{/if}</div>
									<div class="g-row">
										<b class="k-tc-luck">
											{$item['mobile']}										</b>
										<span class="g-last k-tc-gray">
											{php echo date('Y-m-d H:i:s',$item['addtime']);}									</span>
									</div>
								</div>
							</div>
						{/loop}
					</div>
				</div>


<div class="content baixian">
    {if !empty($myshop)}
        {if !empty($myshop['topimgs']) || !empty($myshop['content'])}
            <a href="/{php echo createMobileUrl('viewshop', array('themeid'=>$themeid,'id'=>$myshop['id'],'show'=>'jianhua'));}"><img class="lazy" src="{php echo tomedia($myshop['imgs']);}" /></a>
        {else}
            <img class="lazy" src="{php echo tomedia($myshop['imgs']);}" />
        {/if}
    {/if}
    {loop $shoplist $row}
      {if !empty($row['imgs'])}
        {if !empty($row['topimgs']) || !empty($row['content'])}
            <a href="/{php echo createMobileUrl('viewshop', array('themeid'=>$themeid,'id'=>$row['id'],'show'=>'jianhua'));}"><img class="lazy" src="{php echo tomedia($row['imgs']);}" /></a>
        {else}
            <img class="lazy" src="{php echo tomedia($row['imgs']);}" />
        {/if}
      {/if}
    {/loop}
</div>

		<div class="content baixian">{$config['content']}
		  <img src="{php echo tomedia($theme['addimg']);}" style="pointer-events:auto;" width="100%"  class="lazy">
		</div>

				<div class="gmjl" style="background-color: {$config['formcolorcenter']};color: {$config['formcolorcentertext']};">
				<div class="gmjl-title">
					购买记录

					<span class="k-fr k-h5">总计：{$totalsum} 人</span>				</div>
				<div class="gmjl-content">
					<table class="gmjl-table">
						<thead>
							<tr>
								<th>姓名</th>
								<th>手机号</th>
								<th>购买状态</th>
							</tr>
						</thead>
						<tbody>
						{loop $fanslist $item}
							<tr>
									<td>{$item['username']}</td>
									<td>{$item['mobile']}</td>
									<td class="gmjl-status2" style="color: {$config['formcolorcentertext']};"">已购买</td>
							</tr>
						{/loop}
						</tbody>
					</table>
				</div>
			</div>
			{if $theme['yixuanbanquan'] != '1'}
				<div class="metro_container content" style="text-align:center;padding:5px 0px 10px";>
				<a style="font-size:12px;" href="{php echo empty($theme['USERURL'])?$system['s']['yixuanurl']:$theme['USERURL'];}">{php echo empty($theme['USERJISHU'])?$system['s']['yixuanjishu']:html_entity_decode($theme['USERJISHU'], ENT_QUOTES);}</a>
				</div>
			{/if}
			<div class="links">
				<a href="{php echo empty($theme['USERURL'])?$system['s']['yixuanurl']:$theme['USERURL'];}">我也要创建活动</a>
			</div>
			</div>


	<div class="slidebar">
		<ul>
						<li class="item1">
				<a onclick="showkfewm()" href="javascript:;">
					<span class="icon">
						<img src="{$_G['URL']['LIANMENG_CSS']}images/f-003.png" alt="">
					</span>
					<span>联系商家</span>
				</a>
			</li>
			<li class="item2">
				<a href="/{php echo createMobileUrl('myorder', array('themeid'=>$theme['id']));}">
					<span class="icon"><img src="{$_G['URL']['LIANMENG_CSS']}images/f-002.png" alt=""></span>
					<span>我的定单</span>
				</a>
			</li>
			{if (!empty($myworker))}
			<li class="item3">
						<a href="{php echo $_G['siteroot'].createMobileUrl("w_index",array("themeid"=>$themeid));}">
							<span class="icon"><img src="{$_G['URL']['LIANMENG_CSS']}images/f-001.png" alt=""></span>
							<span>后台管理</span>
						</a>
					</li>
			{/if}
							
		</ul>
	</div>
	
	<div id="pop" style="display: none;">
		<div class="pop-mask"></div>
		<div class="pop-share">
						<div class="pop-wrap" style="margin-top: 30px;">
				<div class="qrcode">
										<img id="myqrcode" src="">
					<p>您也可以长按保存此二维码。</p>
				</div>
				<i class="icon icon-close" onclick="hide('pop')"></i>
			</div>
		</div>
	</div>

	<script>
		setTimeout(function(){
			$('#alert').hide();
		},5000);
	</script>

<!-- 	<div id="pop3">
			<div class="mask"></div>
			<div class="pop3">
				<img src="{$_G['URL']['LIANMENG_CSS']}images/pop3.png">
				<div class="cont k-tc-luck">
					因活动过于火爆，本活动提前结束，非常感谢各位家长的大力支持。
				</div>
				<a class="close" href="javascript:;" onclick="pop3.style.display = 'none'"></a>
			</div>
		</div> -->
		<script type="text/javascript">
			$('#alert').hide();
		</script>


	<div id="toast" class="toast" style="display: none;"></div>
		<script type="text/javascript" src="{$_G['URL']['LIANMENG_CSS']}js/swiper-3.4.2.jquery.min.js"></script>
	<script src="{$_G['URL']['LIANMENG_CSS']}js/common.js?v=1.2"></script>
			<script>$('.subnav').addClass('active');</script>	<script type="text/javascript">
		$.get('http://vlog.imshenji.com/log/?shopid=20723&t=brokers');
		function hide(id) {
			$("#"+id).hide();
		}
		function show(id) {
			$("#"+id).show();
		}

		function show_myqrcode(){
			$('#myqrcode').attr('src','http://bkqr.26tc.com/d/2tcrunhh');
			show('pop');
		}
		var toast=function(title,autoTime){
			$('#toast').html('<p>'+title+'</p>').show();
			if(autoTime!=undefined){
				setTimeout(function(){
					$('#toast').hide();
				},autoTime);
			}
		}
		$('#tipOkBtn').on('click', function(event) {
			event.preventDefault();
			hide('alert');
			$.post('/index.php/index/redtip.html', {pid: '4167'});
		});
		var mySwiper = new Swiper ('.swiper-container', {
			loop: true,
			direction: 'horizontal',
			pagination : '.swiper-pagination',
			paginationType : 'fraction',
		})

		function slide() {
			$("#record .g-news .g-bd:first").animate({
				marginTop: -68},
				500, function() {
				$(this).removeAttr('style').parent().append(this);
			});
			setTimeout(slide, 3000);
		};
		setTimeout(slide, 3000);


	</script>
		<div id="tempDiv" style="display: none;"></div>
	<script>
		// $(document).ready(function() {
		// 	setTimeout(function(){
  //               $('#tempDiv').html('<img src="http://7.jvg7h.cn/attachment/images/42/2019/01/KD389e537Eu7r3CyE7738cbtq7DTrC.jpg?_t=1556205254"><img src="http://7.jvg7h.cn/web/themes/kprint/user/assets/img/1.jpg?_t=1556205254">');
  //           },8000);
		// });
	</script>



<link rel="stylesheet" type="text/css" href="{$_G['URL']['YIYE_CSS']}css/mobile_music.css">
<div id="audio_btn" class="">
	<div id="yinfu" class="rotate"></div>
</div>
<script type="text/javascript">

var video = $("<audio loop='loop'></audio>").appendTo('body');

video.attr('src',"{php echo tomedia($config['musicsrc']);}");

video.attr('id','bgaudio');
//创建临时使用的a标签
var tmpA = tmpA || $("<a href='#'></a>").appendTo('body');
//给标签绑定事件,在标签中播放视频
tmpA.unbind('bind').bind('click',function (e) {
    e.preventDefault();
//  通过先暂停，再播放的方式实现在ios中自动播放的效果
    video[0].play();
    video[0].pause();
    video[0].play();
}).click();


$(function(){
	$("#audio_btn").click(function(){
		if ($(this).hasClass('off')) {
			video[0].play();
			$(this).removeClass('off');
			$("#yinfu").addClass("rotate");
		} else {
			video[0].pause();
			$(this).addClass('off');
			$("#yinfu").removeClass("rotate");
		};
	})
});
document.addEventListener("WeixinJSBridgeReady", function () {
        document.getElementById('bgaudio').play();
}, false);
</script>

<script type="text/javascript">
window.setTimeout(function(){
    $(".new_kefu_head").animate({right:'-100px',opacity:'0.4'}, 500);
},1000);
$(".new_kefu_img").toggle(function() {
	$(".new_kefu_head").animate({right:'0',opacity:'1'}, 500);
}, function() {
	$(".new_kefu_head").animate({right:'-100px',opacity:'0.4'}, 500);
});
var group_height = -$(".my_grounp").height()/2;
$(".my_grounp").css('margin-top', group_height);
/*显示关闭我的团*/
$(".base_tcdiv_mobile1,.close_x1").click(function(){
	$(".base_tcdiv_mobile1").hide();
	$(".my_grounp").hide();
});


function show_group(){
	$(".base_tcdiv_mobile1").show();
	$(".my_grounp").show();
}

function close_group(){
	$(".base_tcdiv_mobile1").hide();
	$(".my_grounp").hide();
}

</script>

<script type="text/javascript">
	/*底部弹出支持*/
	var chips_tanchu = $(".chips_tanchu");

	$(".base_tcdiv_mobile,.cancel-img").click(function(){
    	if (chips_tanchu.is(':hidden')) {
			$(".chips_tanchu").slideDown(500); 
			$(".chips_tanchu_bottom").show();
			$(".base_tcdiv_mobile").show();
    	}
    	else {
			$(".chips_tanchu").slideUp(500);
			$(".chips_tanchu_bottom").hide();
			$(".base_tcdiv_mobile").hide();
    	};
    });

function showlogin(joinid){
	close_group();
	$("#joininfoid").val(joinid); 
	$(".chips_tanchu").slideDown(500); 
	$(".chips_tanchu_bottom").show();
	$(".base_tcdiv_mobile").show();
}
function showloginfree(joinid){
    close_group();
    $("#joininfoid").val(joinid); 
    $(".chips_tanchu").slideDown(500); 
    $(".chips_tanchu_bottom").hide();
    $(".chips_tanchu_bottom2").show();
    $(".base_tcdiv_mobile").show();
}

</script>
{include file='lijianshangjia/wxpay'}

{include file='base/tips'}
{include file='base/kefu'}
{include file='base/sharepyq'}